package q.yazg;

import org.newdawn.slick.opengl.Texture;

/**
 *
 * @author khalisq
 */
class Background implements Comparable<Background> {

    private float layer;
    private Texture tex;

    public Background(float layer, Texture tex) {
        this.layer = layer;
        this.tex = tex;
    }
    
    @Override
    public int compareTo(Background o) {
        return (int) (layer-o.layer);
    }
    
    public void render(){
        Main.renderQuad(0f, 0f, tex);
        //Main.renderQuad(0f, 0f, 800f, 600f, 0f, 0f, 1f, 1f, tex);
    }
    
}
